﻿namespace YuYuKiCms.Framework.Core.Extention
{
    public static class StringExtention
    {
        public static string RemoveExtention(this string virtualPath)
        {
            var p = virtualPath.LastIndexOf('.');
            return (p == -1) ? virtualPath : virtualPath.Substring(0, p);
        }

    }
}